<template>
  <!-- 6.处理keep-alive缓存多次同一个组件出现覆盖的问题 -->
  <router-view v-slot="{ Component }">
  <keep-alive>
    <component :is="Component" />
  </keep-alive>
</router-view>
  
</template>

<style lang="scss">

</style>
